package com.centaline.androidsalesblog.api.usercenter;

import com.android.volley.Request;
import com.centaline.androidsalesblog.api.UserCenterApi;
import com.centaline.androidsalesblog.model.responseobject.OrderListRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 约看
 * Created by ruanzb on 2016/3/14.
 */
public class OrderApi extends UserCenterApi<OrderListRo> {

    private int Count;
    private int FirstIndex;
    private String UserId;
    private boolean IsReserve;

    public OrderApi(Class<?> tag, Class<OrderListRo> aClass, IResponseListener<OrderListRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    public void setUserId(String userId) {
        UserId = userId;
    }

    public void setCount(int count) {
        Count = count;
    }

    public void setFirstIndex(int firstIndex) {
        FirstIndex = firstIndex;
    }

    public void setReserve(boolean reserve) {
        IsReserve = reserve;
    }

    @Override
    protected void setParams() {

        putParams("Count", Count);
        putParams("FirstIndex", FirstIndex);
//        putParams("UserId", UserId);
        putParams("IsReserve", IsReserve);
    }

    public int getMethod() {
        return Request.Method.GET;
    }

    @Override
    protected String getPath() {
        return "ReservationRequest";
    }
}
